home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / src / xgopher.1.3 / sc_extendP.h.z / sc_extendP.h
C/C++ Source or Header  |  1998-01-21  |  2KB  |  53 lines

  1. /* sc_extendP.h
  2.    private header file for gopher item subclass: extend type */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #include "util.h"
  20. #include "sc_extend.h"
  21. #include "osdep.h"
  22.  
  23. char    prefixExtend [ PREFIX_LEN ];
  24.  
  25.  
  26. accessList    extendHostList=NULL;
  27.  
  28. /* ----- subclass record definition ----- */
  29.  
  30. scInfo    extendSubclass = {
  31.         "non-internal item",
  32.         prefixExtend,
  33.         &extendHostList,
  34.         GIExtend_access,
  35.         GI_copyToFile,
  36.         copyTypeBinaryEOF,
  37.         GIExtend_process,
  38.         GIExtend_init,
  39.         GI_done,
  40.         GI_restart
  41.     };
  42.  
  43. /* ----- extended types parameters ----- */
  44.  
  45. typedef struct extTypeValueStruct {
  46.     char    type;            /* which type it applies to */
  47.     char    *execCommand;        /* command to execute for this type */
  48.     BOOLEAN    wait;            /* don't go on until done */
  49.     BOOLEAN    failed;        /* command failed before */
  50.     PID_TYPE pid;            /* PID of active process */
  51.     struct extTypeValueStruct *next;
  52. } extTypeValue;
  53.